const {Sequelize,Model} = require('sequelize');
const sequelize = require('../db/index');
class Admin extends Model{}

Admin.init({
  admin_id:{
    type:Sequelize.INTEGER(11),
    autoIncrement:true,
    primaryKey:true
  },
  username:{
    type:Sequelize.STRING(50),
    unique:true,
    allowNull:false
  },
  password:{
    type:Sequelize.STRING(255),
    allowNull:false,
    
  }
},{
  sequelize,
  tableName:'admin'
});

module.exports = Admin;